package com.departmentstore.repository;

import com.departmentstore.entity.Manufacturer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ManufacturerRepository extends JpaRepository<Manufacturer, String> {
    // 根据制造商名称查找制造商
    List<Manufacturer> findByName(String name);
    
    // 根据制造商地址查找制造商
    List<Manufacturer> findByAddress(String address);

} 